﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="addarticle.aspx.vb" Inherits="businessdev_addarticle" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .auto-style1 {
    }
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h3>Add new article</h3><br />
<table style="width:100%;">
    <tr>
        <td class="auto-style1">Cover Photo</td>
        <td>
            <asp:FileUpload ID="FileUpload1" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="auto-style1">Title</td>
        <td>
            <asp:TextBox ID="txttitle" runat="server" Width="403px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style1">Tags</td>
        <td>
            <asp:TextBox ID="txttags" runat="server" Width="401px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style1">Date</td>
        <td>
            <asp:TextBox ID="TextBox3" runat="server" Width="401px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style1">Status</td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server" Height="20px" Width="407px">
                <asp:ListItem>Live</asp:ListItem>
                <asp:ListItem>Draft</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="auto-style1" style="vertical-align: top">Into</td>
        <td>
            <asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine" Width="399px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style1">&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td class="auto-style1" colspan="2">
            <asp:TextBox ID="txtbody" runat="server" Height="100px" TextMode="MultiLine" Width="95%"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style1" colspan="2">
            <asp:Button ID="Button1" runat="server" Text="Save" Width="96px" />
        </td>
    </tr>
</table>
<br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Management_Info_SysConnectionString %>" DeleteCommand="DELETE FROM [articles] WHERE [article_Key] = @article_Key" InsertCommand="INSERT INTO [articles] ([author], [title], [tags], [date_], [status], [intro], [body], [calumn1], [column2], [timestamp]) VALUES (@author, @title, @tags, @date_, @status, @intro, @body, @calumn1, @column2, @timestamp)" SelectCommand="SELECT * FROM [articles]" UpdateCommand="UPDATE [articles] SET [author] = @author, [title] = @title, [tags] = @tags, [date_] = @date_, [status] = @status, [intro] = @intro, [body] = @body, [calumn1] = @calumn1, [column2] = @column2, [timestamp] = @timestamp WHERE [article_Key] = @article_Key">
        <DeleteParameters>
            <asp:Parameter Name="article_Key" Type="Int64" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="author" Type="String" />
            <asp:Parameter Name="title" Type="String" />
            <asp:Parameter Name="tags" Type="String" />
            <asp:Parameter Name="date_" Type="String" />
            <asp:Parameter Name="status" Type="String" />
            <asp:Parameter Name="intro" Type="String" />
            <asp:Parameter Name="body" Type="String" />
            <asp:Parameter Name="calumn1" Type="String" />
            <asp:Parameter Name="column2" Type="String" />
            <asp:Parameter Name="timestamp" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="author" Type="String" />
            <asp:Parameter Name="title" Type="String" />
            <asp:Parameter Name="tags" Type="String" />
            <asp:Parameter Name="date_" Type="String" />
            <asp:Parameter Name="status" Type="String" />
            <asp:Parameter Name="intro" Type="String" />
            <asp:Parameter Name="body" Type="String" />
            <asp:Parameter Name="calumn1" Type="String" />
            <asp:Parameter Name="column2" Type="String" />
            <asp:Parameter Name="timestamp" Type="String" />
            <asp:Parameter Name="article_Key" Type="Int64" />
        </UpdateParameters>
    </asp:SqlDataSource>
<br />
<br />
<br />
</asp:Content>

